package com.xt.LibaryDeskManager.service.impl;

import com.xt.LibaryDeskManager.dao.AdminMapper;
import com.xt.LibaryDeskManager.dto.UserMessage;
import com.xt.LibaryDeskManager.service.AdminService;
import com.xt.LibaryDeskManager.vo.LoginVo;
import com.xt.LibaryDeskManager.vo.UpdateVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 童归权
 * @version 1.0 2021/1/30
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
   private AdminMapper adminMapper;

    @Override
    public UserMessage selectByLoginVo(LoginVo loginVo) throws Exception{
        return adminMapper.selectByLogin(loginVo);
    }

    @Override
    public int updateAdmin(UpdateVo updateVo) throws Exception {
        return adminMapper.updateAdmin(updateVo);
    }
}
